{# Copyright (c) 2006-2007, PreFab Software Inc. #}
{# Copyright (c) 2008 aaloy - Apsl.net           #}
{% load i18n %}
{% comment %}
    Form fields for comments.
        Shared between the primary comment form and the preview page.
        Form fields are hashed for security against spammers.
{% endcomment %}
{% if comment_form.has_errors %}
<span class='error'>{% trans "Please correct the following errors:" %}</span>
{% endif %}

<div class="column1-unit">
<div class="contactform">
    <fieldset>
        <legend>{% trans "Identificaci&oacute;" %}</legend>
        
<p>
    <label class="left" for="id_{{ fields.person_name }}">{% trans "Nom "%}*:</label>
    {% if comment_form.person_name.errors %}
    <span class="error">{{ comment_form.person_name.html_error_list }}</span>
    {% endif %}
    <input type="text" size="25" id="id_{{ fields.person_name }}" name="{{ fields.person_name }}" class="field" value="{{ comment.person_name }}"/>
</p>
<p>
    <label class="left" for="id_{{ fields.person_email }}">{% trans "Email" %}:</label>
    <input type="text" size="25" id="id_{{ fields.person_email }}" name="{{ fields.person_email }}" class="field" value="{{ comment.person_email }}"/>
    <div style="display:none">
        Ignore this field:<br />
        <input type="text" id="id_{{ fields.honeypot1 }}" name="{{ fields.honeypot1 }}" class="field" />
    </div>
    <div style="display:none">
    Don't put anything in this field:<br />
    <input type="text" id="id_{{ fields.honeypot2 }}" name="{{ fields.honeypot2 }}" class="field" />
    </div>
</p>
<p><label class="left" for="id_{{ fields.person_www }}">URL:</label>
<input type="text" size="25" id="id_{{ fields.person_www }}" name="{{ fields.person_www }}" class="field" value="{{ comment.person_www }}"/>
</p>

</fieldset>
<p><label for="id_{{ fields.comment }}">{% trans "Commentari" %}:</label>
    <div align="center" style="display:none">
        Don't put anything here:<br />
        <textarea name="{{ fields.honeypot3 }}" id="id_{{ fields.honeypot3 }}" rows='15' cols='80'></textarea>
    </div>
{% if comment_form.comment.errors %}
<span class="error">{{ comment_form.comment.html_error_list }}</span>
{% endif %}
<textarea class="comment-text" name="{{ fields.comment }}" id="id_{{ fields.comment }}">{{ comment.comment }}</textarea>
<div align="center" style="display:none">
Leave this empty:<br />
<textarea name="{{ fields.honeypot4 }}" id="id_{{ fields.honeypot4 }}" rows='15' cols='80'></textarea>
</div>
</p>
<p>
{% trans "URLs auto-link i alguns tags permesos:" %} &lt;a>&lt;b>&lt;i>&lt;p>.
</p>
<p>
    <input type="submit" name="{{ fields.preview }}" value="{{ previewText }}" class="input-button" />
    {% if not comment_form.has_errors %}
    <input type="submit"  class="input-button" name="{{ fields.post }}" value="Publicar" />
    {% endif %}
</p>
<span style="display:none">
    <input type="submit" name="{{ fields.submit }}" value="I'm a spambot">
</span>
<p>{% trans "L'Email no es mostrar&agrave; als comentaris publicats."%}</p>
</div>
</div>

<input type="hidden" name="{{ fields.target }}" value="{{ target }}" />
<input type="hidden" name="spinner" value="{{ spinner }}" />  
<input type="hidden" name="{{ fields.timestamp }}" value="{{ timestamp }}" />  

